package com.realestate.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * The persistent class for the brtb_account_role database table.
 * 
 */
@Entity
@Table(name="user_roles")
public class BrtbUserRole implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private String role;
	
	private BrtbUsers brtbUsers;

    public BrtbUserRole() {
    }

    @Id
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name="username")
	public BrtbUsers getBrtbUsers() {
		return this.brtbUsers;
	}

	public void setBrtbUsers(BrtbUsers brtbUsers) {
		this.brtbUsers = brtbUsers;
	}
	
	@Column(name="role")
	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}
}